﻿<Windows:BookvarToolWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:aw="clr-namespace:Assergs.Windows;assembly=Assergs.Windows"
    xmlns:itb="clr-namespace:Microsoft.Samples.KMoore.WPFSamples.InfoTextBox;assembly=J832.Wpf.BagOTricksLib"
    xmlns:controls="clr-namespace:BookvarWpf.Controls"
    xmlns:Windows="clr-namespace:BookvarWpf.Windows;assembly="
    xmlns:r="clr-namespace:Bookvar.UI.Localization;assembly=Bookvar.UI"
	x:Class="BookvarWpf.SubmitBugWindow"
	Header="{r:Resources SubmitBugHeaderText}"
	Icon="pack://application:,,,/BookvarWPF;component/Resources/Icons/16x16/report_bug.png"
	Style="{DynamicResource {x:Type aw:ToolWindow}}"
	Width="300" Height="400"
	Background="{StaticResource ListBackground}" 
	>
  <Grid Margin="5">
    <Grid.Resources>
      <Style TargetType="{x:Type TextBox}">
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="BorderThickness" Value="0,0,0,0" />
        <Setter Property="Margin" Value="2,2,2,2" />
        <Setter Property="Background" Value="Transparent" />
      </Style>

      <Style TargetType="{x:Type Border}">
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="BorderBrush" Value="#FF85A7DB" />
        <Setter Property="Background" Value="#FFF0F7FF" />
        <Setter Property="CornerRadius" Value="5,5,5,5" />
        <Setter Property="Height" Value="24" />
        <Setter Property="BorderThickness" Value="1,1,1,1" />
      </Style>

    </Grid.Resources>
    <Grid.RowDefinitions>
      <RowDefinition Height="30" />
      <RowDefinition Height="30" />
      <RowDefinition Height="30" />
      <RowDefinition Height="30" />
      <RowDefinition Height="*"/>
      <RowDefinition Height="35"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Label x:Name="lblStatus" Grid.Row="0" Visibility="Collapsed" />
    <itb:InfoTextBox Grid.Row="1" x:Name="txtName" Width="200" TextBoxInfo="Your name" HorizontalAlignment="Left" />
    <itb:InfoTextBox Grid.Row="2" x:Name="txtEmail" Width="200" TextBoxInfo="Your email" HorizontalAlignment="Left" />
    <itb:InfoTextBox Grid.Row="3" x:Name="txtBugSubject" Width="200" TextBoxInfo="Bug subject" HorizontalAlignment="Left" />
    <ScrollViewer Grid.Row="4">
      <RichTextBox x:Name="txtBugDescription" MinWidth="300" MinHeight="200" HorizontalAlignment="Left"
                 ScrollViewer.CanContentScroll="True" />
    </ScrollViewer>
    <StackPanel Orientation="Horizontal" Grid.Row="5">
      <Button Width="75" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,6,15,6" 
              Click="OnSubmitClicked" Height="22" BorderBrush="#FF536B88" Background="{StaticResource BlueButtonStyleBrush}"
              Content="{r:Resources OkDefaultText}" />
      <Button BorderBrush="#FF536B88" Width="75" HorizontalAlignment="Center" VerticalAlignment="Center"
              Margin="10,6,15,6" Command="aw:ToolWindow.CloseCommand" Height="22" Background="{StaticResource BlueButtonStyleBrush}"
              Content="{r:Resources CancelDefaultText}" />
    </StackPanel>
    <controls:ProgressAnimation x:Name="progressAnimation" Margin="0,120,0,0" />
  </Grid>
</Windows:BookvarToolWindow>